package com.trafficsys.modules.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

/**
 * 居民身份证
 */
@Data//lombok生成get set方法
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class IdCard{
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private String cardId;//身份证号
    private String name;
    private String birthday;
    private String address;
    private String department;//身份证签发机关
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp validity;//有效期限
    private String state;//身份证状态
}
